package com.thunder.rebot.rebotclient.utils;

import android.text.TextUtils;

import java.util.HashMap;

public class LogInUtils {


    public static boolean passwdIsValid(String name, String passwd, HashMap<String ,String> hashMap){
        if(TextUtils.isEmpty(name) && TextUtils.isEmpty(passwd) && hashMap == null){
            return false;
        }
        if(hashMap.containsKey(name)){
            if(passwd.equals(hashMap.get(name))){
                return true;
            }
        }
        return false;
    }



}
